]> dgit.raspbian.org Git - gnome-shell.git/commit
Add String formatting
authorAdel Gadllah <adel.gadllah@gmail.com>
Sun, 4 Oct 2009 21:30:18 +0000 (23:30 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sun, 4 Oct 2009 21:37:33 +0000 (23:37 +0200)
commit64cd51667dc498412cbaeb53cd92cc6de7a04e23
treec29d83488e6db04429f4db7c47941d2bae91999e
parentcaa08f27fa0afd96f7684245cbded641335377f2
Add String formatting

Add String formatting by extending the String object with a
format method.

Now we can do stuff like "Text: %s, %d".format(somevar, 5)

This is required for proper translation of some strings.

https://bugzilla.gnome.org/show_bug.cgi?id=595661
js/misc/Makefile.am
js/misc/format.js [new file with mode: 0644]
js/ui/environment.js
tests/Makefile.am
tests/unit/format.js [new file with mode: 0644]